import request from '@/utils/request'

// 查询社团活动类型列表
export function listActivityType(query) {
  return request({
    url: '/campus/activityType/list',
    method: 'get',
    params: query
  })
}

// 查询社团活动类型详细
export function getActivityType(id) {
  return request({
    url: '/campus/activityType/' + id,
    method: 'get'
  })
}

// 新增社团活动类型
export function addActivityType(data) {
  return request({
    url: '/campus/activityType',
    method: 'post',
    data: data
  })
}

// 修改社团活动类型
export function updateActivityType(data) {
  return request({
    url: '/campus/activityType',
    method: 'put',
    data: data
  })
}

// 删除社团活动类型
export function delActivityType(id) {
  return request({
    url: '/campus/activityType/' + id,
    method: 'delete'
  })
}
